﻿<%@ Page Language="C#" MasterPageFile="~/Administrator/MasterPage.master" AutoEventWireup="true" CodeFile="sanpham.aspx.cs" Inherits="Administrator_sanpham"  %>

       
<%@ Register assembly="ASPnetPagerV2_8" namespace="ASPnetControls" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="menu_left">
        <li><a href="sanpham_Add.aspx">Thêm sản phẩm</a></li>
         <li><a href="sanpham.aspx">Danh sách sản phẩm</a></li>
        <li><a href="sanpham_tinhtrang.aspx?tinhtrang=Close">Sản phẩm chưa bán</a></li>
        <li><a href="sanpham_tinhtrang.aspx?tinhtrang=Open">Sản phẩm đang bán</a></li>
        <li><a href="sanpham_tinhtrang.aspx?tinhtrang=chayhang">Sản phẩm cháy hàng</a></li>
        <li><a href="sanpham_tinhtrang.aspx?tinhtrang=OutOfDate">Sản phẩm hết hạn</a></li>
        <li><a href="sanpham_tinhtrang.aspx?tinhtrang=Cancel">Sản phẩm bị hủy</a></li>

</div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<h3>
    <font color="blue"><asp:Literal ID="lit_tieude" runat="server"></asp:Literal></font></h3>
    <p>Tên sản phẩm<asp:TextBox ID="txt_tensp" runat="server"></asp:TextBox> Loại Sản Phẩm  
        
        <asp:DropDownList ID="ddl_loai" runat="server">
        </asp:DropDownList>
        
        <asp:Button ID="bt_timkiem" runat="server" Text="Tìm Kiếm" 
            onclick="bt_timkiem_Click" /></p>
            
            <asp:Repeater ID="Repeater1" runat="server" 
        onitemdatabound="Repeater1_ItemDataBound">
    <HeaderTemplate>
    <table style="border:1px solid black" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td style="background-color:Silver;border:1px solid black;width:5%;text-align:center">
           STT
        </td>
        <td style="background-color:Silver;border:1px solid black;width:10%;text-align:center">
            Mã Sản Phẩm
        </td>
        <td style="background-color:Silver;border:1px solid black;width:20%;text-align:center">
            Tên Sản Phẩm
        </td>
        <td style="background-color:Silver;border:1px solid black;width:10%;text-align:center">
            Loại 
        </td>
        <td style="background-color:Silver;border:1px solid black;width:10%;text-align:center">
            Giá Gốc
        </td>
        <td style="background-color:Silver;border:1px solid black;width:10%;text-align:center">
            Số Lượng Bán
        </td>      
        <td style="background-color:Silver;border:1px solid black;width:25%;text-align:center">
           Doanh Nghiệp
        </td>
        <td style="background-color:Silver;border:1px solid black;width:10%;text-align:center">
           Tình Trạng
        </td>
    </tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr>
        <td style="border:1px solid black">
            <asp:Literal ID="lit_stt" runat="server"></asp:Literal>
        </td>
        <td style="border:1px solid black">
            <asp:Literal ID="lit_masp" runat="server"></asp:Literal>
        </td>
        <td style="border:1px solid black">
            <asp:HyperLink ID="hyp_tensp" runat="server"><%#Eval("TenSP")%></asp:HyperLink>
        </td>
        <td style="border:1px solid black">
            <asp:Literal ID="lit_loai" runat="server"></asp:Literal>
        </td>
        <td style="border:1px solid black">
            <asp:Literal ID="lit_giagoc" runat="server"></asp:Literal>
        </td>
        <td style="border:1px solid black">
            <asp:Literal ID="lit_slban" runat="server"></asp:Literal>
        </td>
        
        <td style="border:1px solid black">
            <asp:Literal ID="lit_doanhnghiep" runat="server"></asp:Literal>
        </td>
        <td style="border:1px solid black">
            <asp:HyperLink ID="hyp_tinhtrang" runat="server"></asp:HyperLink>
        </td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>
    <div style="width:100%;"> 
            <div style="float:left;">               
            </div>
            <cc1:PagerV2_8 ID="pager" runat="server" />
        </div>

<div class="vide"></div>
</asp:Content>

